home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Symbols
/
Chords
/
scale-chords
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-22
|
886b
|
32 lines
scale-chords chords &key
(type 'min) (meth 'sum)
legal types min or max
legal meths sum, low or high
sorts chords in different ways by either
lowest, highest or notesum.
when two chords have the same sum picks by either
min or max.
(setq chords '(ajk dhgd ehg csb cghj kjhd acge vg dyt cvg acgd))
(scale-chords chords :meth 'low :type 'min)
->(acgd acge ajk csb cghj cvg dhgd kjhd dyt ehg vg)
(scale-chords chords :meth 'low :type 'max)
->(ajk acge acgd csb cvg cghj dyt kjhd dhgd ehg vg)
(scale-chords chords :meth 'high :type 'min)
->(dyt vg cvg csb ajk kjhd cghj dhgd ehg acgd acge)
(scale-chords chords :meth 'high :type 'max)
->(dyt vg cvg csb kjhd ajk cghj ehg dhgd acge acgd)
(scale-chords chords :meth 'sum :type 'min)
->(acgd acge ehg ajk dhgd csb cghj vg cvg kjhd dyt)
(scale-chords chords :meth 'sum :type 'max)
->(acgd acge ehg dhgd ajk csb cghj vg kjhd cvg dyt)